<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
 
$input = JFactory::getApplication()->input;

// Access check.
if (!JFactory::getUser()->authorise('core.manage', 'com_zorder')) 
{
	return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
 
// require helper file
require_once 'helpers/zorder.php';
 
// import joomla controller library
jimport('joomla.application.component.controller');
 
$task = $input->get('task');

$controller = JControllerLegacy::getInstance('ZOrder');
$controller->execute(JRequest::getCmd('task'));
$controller->redirect();
